﻿using System;
using System.Collections.Generic;
using System.Text;

namespace EventBus.Common
{
    public class BaseCommand : ICommand
    {
        public BaseCommand()
        {
            CommandId = Guid.NewGuid().ToString();
        }

        public string CommandId { get; set; }

        /// <summary>
        /// 获取路由key
        /// </summary>
        public string GetRoutingKey()
        {
            return GetType().Name;
        }
    }
}
